package tech.wangpai.repository;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.util.StringUtils;
import tech.wangpai.domain.User;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

@Repository
public interface UserMapper {

    List<User> queryUserByUsername(String username);

    User getUserById(String userId);

    void addUser(User user);

    void delUserById(String userId);

    void updateUserById(String userId, User user);

    void updateUserAgeById(@Param("userId") String userId, @Param("age")Integer age);
}